package cn.wolfcode.shop.cloud.util;

import cn.wolfcode.shop.cloud.key.KeyPrefix;

public class SeckillKeyPrefix implements KeyPrefix {
    private int ExpireSeconds;
    private String Prefix;
    @Override
    public String getPrefix() {
        return this.Prefix;
    }

    @Override
    public int getExpireSeconds() {
        return this.ExpireSeconds;
    }

    public SeckillKeyPrefix(int expireSeconds, String prefix) {
        ExpireSeconds = expireSeconds;
        Prefix = prefix;
    }

    public SeckillKeyPrefix() {
    }
    public static final SeckillKeyPrefix SECKILL_STOCK_COUNT=new SeckillKeyPrefix(0,"stock_count:");
    public static final SeckillKeyPrefix REDIS_SECKILL_ORDER=new SeckillKeyPrefix(0,"seckill_order:");
    public static final SeckillKeyPrefix REDIS_SECKILL_VO=new SeckillKeyPrefix(0,"seckill_vo:");
    public static final SeckillKeyPrefix REDIS_SECKILL_PATH=new SeckillKeyPrefix(3000,"redis_seckill_path:");
    public static final SeckillKeyPrefix VERIFYCODE_RESULT=new SeckillKeyPrefix(6000,"verifycode_result:");
}
